GenAgent: Build Collaborative AI Systems with Automated Workflow Generation -- Case Studies on ComfyUI